<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位-个人练习</title>
</head>

<style>
   * {
      padding: 0;
      margin: 0; 
   }

   .box {
       /* position: static;   static即没有定位 */
       position: relative; /* 父需要有定位，子的绝对定位才有意义 */
       width: 980px;
       height: 400px;
       background-color: pink;
       margin: 50px auto; 
       /* padding-top: 15px ; */
       text-align: center;
   }


   .box>img {
        width: 980px;
       height: 400px;
   }


   .btnLeft {
       position: absolute ;
       top: 150px  ;
       left:0;

       height: 40px;
       width: 30px;
   }
   .btnLeft img {
       width: 100% ;
   }

   .btnLeft:hover img {
    background-image: url(pics/left01.png);
   }

   .btnRight {
       position: absolute ;
       top: 150px ;
       right:0;

       height: 40px;
       width: 30px;
   }
   .btnRight img {
       width: 100% ;
   }
   .btnRight:hover img {
    background-image: url(pics/right02.png);
   }

</style>
<body>
    <div class="box">
        <h1>太丑了</h1>
        <a class="btnLeft" >
            <img src="pics/left0101.png" alt="">
        </a>
        <img src="pics/11.1.big-pic.jpeg" alt="">
        <a class="btnRight">
            <img src="pics/right0202.png" alt="">
        </a>
    </div>
</body>
</html>